package factory;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Singleton permettant d'accèder à l'Executor Service.
 */
public class ExecutorFactory {

	private static ExecutorService executorService;
	
	public static ExecutorService getInstance() {
		if(executorService == null) {
			executorService = Executors.newFixedThreadPool(100);
		}
		
		return executorService;
	}
	
}
